<template>
  <ul class="footer-box">
    <van-tabbar route v-model="active" active-color="pink">
      <van-tabbar-item name="home" icon="home-o" to="/"> 首页 </van-tabbar-item>
      <van-tabbar-item name="search" icon="apps-o" to="/List">
        列表
      </van-tabbar-item>
      <van-tabbar-item name="friends" icon="shopping-cart-o" to="/ShoppingCart">
        购物车
      </van-tabbar-item>
      <van-tabbar-item name="setting" icon="manager-o" to="/My">
        我的
      </van-tabbar-item>
    </van-tabbar>
  </ul>
</template>

<script>
export default {
  name: "FooterBarVue",
  data() {
    return {
      active: "home",
    };
  },
};
</script>

<style scoped>
@import url(../assets/iconfonts/iconfont.css);

.footer-box {
  width: 100%;
  height: 3.125rem;
  background-color: white;
  border-top: 1px solid gray;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.footer-box li {
  flex: 1;
  /* border: 1px solid red; */
  text-align: center;
}
</style>